package com.qb.common.net.one

import com.qb.common.api.one.ApiServiceKotlin


class NetWork {
    private val mService by lazy { RetrofitClient.getInstance().create(ApiServiceKotlin::class.java) }

    companion object {
        @Volatile
        private var netWork: NetWork? = null

        fun getInstance() = netWork ?: synchronized(this) {
            netWork ?: NetWork().also { netWork = it }
        }
    }
    suspend fun phoneQuery(map:MutableMap<String,Any>) = mService.phoneQuery(map)


}